package com.yike.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yike.product.api.vo.GoodsFeignVo;
import com.yike.product.entity.Goods;
import com.yike.product.param.ShopGoodsPageParam;
import com.yike.product.param.ShopGoodsSearchParam;
import com.yike.product.vo.GoodsListVo;
import com.yike.product.vo.GoodsSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 商品表 Mapper 接口
 *
 * @author yike
 * @since 2024-07-17
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    IPage<GoodsListVo> getShopGoodsList(@Param("page") Page page, @Param("param") ShopGoodsPageParam param);

    List<GoodsFeignVo> getGoodsListByIds(@Param("ids") Set<Long> ids);

    List<String> getShopGoodsSearchData(@Param("shopId") Long shopId, @Param("keyword") String keyword);


}
